package sequentiell;

import java.io.IOException;
import java.util.ArrayList;

public class Main {

	public static void main(String[] args) throws Exception{
		
		if(args.length<1)
			throw new IOException("no arguments found!");
		String filePath = args[0];
		
		Graph graph = new Graph(filePath);
		
		ArrayList<Mesh> firstPart = Partition.firstPartition(graph);
		
		ArrayList<Mesh> finalPart = Partition.partition(graph);
		
//		for(int i=0;i<finalPart.size();i++){
//			System.out.println("Mesh:"+finalPart.get(i));
//		}
		
		System.out.println(finalPart.size());
		System.exit(finalPart.size());
	}
}
